// Kony


#include "Actor/BaseMagicCircle.h"

#include "Components/DecalComponent.h"

ABaseMagicCircle::ABaseMagicCircle()
{
	PrimaryActorTick.bCanEverTick = true;
	//创建贴花
	MagicCircleDecal = CreateDefaultSubobject<UDecalComponent>(TEXT("MagicCircleDecal"));
	MagicCircleDecal->SetupAttachment(RootComponent);

	
}

void ABaseMagicCircle::BeginPlay()
{
	Super::BeginPlay();
	
}

void ABaseMagicCircle::Tick(float DeltaTime)
{
	Super::Tick(DeltaTime);
	//旋转魔法阵
	if (bRotateMagicCircle)
	{
		//改变YPitch 位置
		MagicCircleDecal->AddLocalRotation(FRotator(0, 0, DeltaTime * -8));
	}
}

